﻿<UserControl x:Class="PeteBrown.ConferenceTrivia.MainPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:localControls="clr-namespace:PeteBrown.ConferenceTrivia.Controls"
             mc:Ignorable="d"
             d:DesignHeight="768"
             d:DesignWidth="1024">

    <Grid x:Name="LayoutRoot"
          Background="Black">

        <Image Source="Assets/Background.jpg"
               Stretch="UniformToFill"
               HorizontalAlignment="Left"
               VerticalAlignment="Top" />

        <Grid x:Name="RunningContent"
              Visibility="Collapsed">

            <Grid x:Name="Trivia"
                  VerticalAlignment="Top"
                  Height="350">
                <localControls:TriviaItem x:Name="TriviaQuestionsAndAnswers" />
            </Grid>




            <Grid x:Name="TwitterFeed" Margin="50 300 50 0">

                <ItemsControl x:Name="TweetList"
                              ItemsSource="{Binding Tweets}">
                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <localControls:GraveyardPanel ItemNearScale="1.50" BackgroundPositionJitter="35" />
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                    
                    <ItemsControl.ItemTemplate>
                        <DataTemplate>
                            <localControls:Tombstone />
                        </DataTemplate>
                    </ItemsControl.ItemTemplate>
                    
                </ItemsControl>
            </Grid>
            

            <Grid x:Name="Overlay"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Top"
                  Margin="10">
                
                <TextBlock Text="#pdctrivia"
                           Style="{StaticResource HashTagStyle}" />
                
            </Grid>
        </Grid>
    
        <Grid x:Name="OpeningContent">
            <Rectangle Fill="Black" />
            <TextBlock Text="PDC 2010 Trivia by Pete Brown"
                       Style="{StaticResource HashTagStyle}"
                       HorizontalAlignment="Center"
                       Margin="0 200 0 0"/>
            <Button Content="Click here for Full Screen" Height="30" Width="175"
                    Click="Button_Click" />
        </Grid>
    </Grid>
</UserControl>
